//
//  Array+Extension.swift
//  GXLSwiftTools
//
//  Created by 李恶魔 on 2020/5/28.
//  https://www.jianshu.com/p/18f1d37fd684

import UIKit

extension Dictionary {
    /// 字典安全---》添加数据
    mutating func set(_ key : Dictionary.Key , _ value : Dictionary.Value?) {
        if let o = value {
            self[key] =  o
        } else {
            print("Warning! Dictionary:\(self) append an nil value key is '\(key)'")
        }
    }
}
